﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.ServiceModel.DomainServices.Hosting;
using System.ServiceModel.DomainServices.Server;
using System.ServiceModel.DomainServices.Server.ApplicationServices;
using System.Threading;

namespace AuthDemo.Web
{
    [EnableClientAccess(RequiresSecureEndpoint = true)]
    //[EnableClientAccess]
    public class MyAuthDomainService : AuthenticationBase<User>
    {
        protected override bool ValidateUser(string userName, string password)
        {
            return base.ValidateUser(userName, password);
        }
    }

    public class User : UserBase
    {
        public int EmployId { get; set; }
        public int DepartmentId { get; set; }
        public string JobTitle { get; set; }
    }
}